/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package companydetail;

import java.util.Collection;

/**
 *
 * @author TQNINH
 */
public class EmployeeDetail {
    
    public EmployeeDetail() {
        
    }
    
    void printCollection(Collection<?> collect) {
        for(Object obj : collect) {
            System.out.println(obj.toString());
        }
    }
    
    void printDerivedCollection(Collection<? extends Employee> collect) {
        for(Object obj : collect) {
            System.out.println(obj.toString());
        }
    }
}
